<!DOCTYPE html>
<html>
<head>
	<title>date对象 数字时钟</title>
	<meta charset="utf-8">

</head>
<body>

	<script type="text/javascript">
		// 1.date 对象创建
		var today = new Date();//不写参数时表示当前时间
		var will  = new Date("8 15,2018,10:34:28");//写参数表示设定的时间
		console.log(today);
		console.log(will);

		alert(today.getMonth()+1)

	</script>
</body>
</html>